<%@ page import="io.github.luyanfei.QuestionAnswer" %>



<div class="fieldcontain ${hasErrors(bean: questionAnswerInstance, field: 'answer', 'error')} required">
	<label for="answer">
		<g:message code="questionAnswer.answer.label" default="Answer" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="answer" required="" value="${questionAnswerInstance?.answer}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: questionAnswerInstance, field: 'feedback', 'error')} required">
	<label for="feedback">
		<g:message code="questionAnswer.feedback.label" default="Feedback" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="feedback" required="" value="${questionAnswerInstance?.feedback}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: questionAnswerInstance, field: 'fraction', 'error')} required">
	<label for="fraction">
		<g:message code="questionAnswer.fraction.label" default="Fraction" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="fraction" value="${fieldValue(bean: questionAnswerInstance, field: 'fraction')}" required=""/>

</div>

<div class="fieldcontain ${hasErrors(bean: questionAnswerInstance, field: 'question', 'error')} required">
	<label for="question">
		<g:message code="questionAnswer.question.label" default="Question" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="question" name="question.id" from="${io.github.luyanfei.Question.list()}" optionKey="id" required="" value="${questionAnswerInstance?.question?.id}" class="many-to-one"/>

</div>

